package com.aaa.project.controller;


import com.aaa.project.service.ITbBannerService;
import com.aaa.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 首页banner表 前端控制器
 * </p>
 *
 * @author zhangxuhui
 * @since 2023-01-07
 */
@RestController
@RequestMapping("/tb-banner")
public class TbBannerController {
    @Resource
    private ITbBannerService bannerService;
    @GetMapping("rotationalSeeding")
    public Result rotationalSeeding(){
        return new Result(bannerService.find());
    }
}

